home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / tags18.zip / LOG.H < prev    next >
C/C++ Source or Header  |  1991-09-25  |  877b  |  29 lines

  1. /*
  2.  EPSHeader
  3.  
  4.    File: log.h
  5.    Author: J. Kercheval
  6.    Created: Sat, 06/08/1991  09:25:44
  7. */
  8.  
  9. #ifndef BOOLEAN
  10. #define BOOLEAN int
  11. #define TRUE 1
  12. #define FALSE 0
  13. #endif
  14.  
  15. /*----------------------------------------------------------------------------
  16. *
  17. *  log_open() opens the log file for writing after closing the log file if
  18. *       already opened.  The BOOLEAN parameter to_stderr is true if stderr
  19. *       is to be used for logging.  The BOOLEAN parameter overwrite is true
  20. *       the current file for logging is to be overwritten.
  21. *  log_close() closes an opened log file
  22. *  log_message() sends message to stdout and to log file if open
  23. *
  24. ----------------------------------------------------------------------------*/
  25.  
  26. BOOLEAN log_open(char *fname, BOOLEAN to_stderr, BOOLEAN overwrite);
  27. void log_close(void);
  28. void log_message(char *message);
  29.